<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec"    uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<sec:authentication property="principal" var="currentPrincipal" scope="page" />

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<c:forEach items="${shipmentOrders}" var="order">
  <div class="form-horizontal ms-form form-personal-info">

    <div class="form-group ms-form-group">
      <div class="col-xs-2">
        <p class ="form-control-static">订单号：${order.code}</p>
      </div>
      <div class="col-xs-2">
        <p class ="form-control-static">客户：${order.client}</p>
      </div>
      <div class="col-xs-2 ">
        <p class ="form-control-static">订单起始地：${order.startFacility}</p>
      </div>
      <div class="col-xs-2 ">
        <p class ="form-control-static">订单目的地：${order.endFacility}</p>
      </div>
      <div class="col-xs-2">
        <p class ="form-control-static">结算公里数：<fmt:formatNumber value="${order.kilometer}" minFractionDigits="2"/> </p>
      </div>
      <div class="col-xs-2">
        <p class ="form-control-static">单价：<fmt:formatNumber value="${order.contractRate}" minFractionDigits="2"/> </p>
      </div>
    </div>

  </div>

  <table class="table table-hover ms-table">
    <thead>
      <tr>
        <th>VIN码</th>
        <th>数量</th>
        <th>车型</th>
        <th>颜色</th>
        <th>运输方式</th>
        <th>装车道号</th>
        <th>制造商</th>
        <th>起始地</th>
        <th>目的地</th>
        <th>目的地地址</th>
        <th>目的地联系电话</th>
        <th>预计装运时间</th>
        <th>预计起运时间</th>
      </tr>
    </thead>
    <tbody>
      <c:forEach items="${order.shipmentOrderItems}" var="item">
        <tr>
          <td>${item.vinCode}</td>
          <td>${item.quantity}</td>
          <td>${item.carType}</td>
          <td>${item.carColor}</td>
          <td>${item.transType}</td>
          <td>${item.driveWay}</td>
          <td>${item.manufactor}</td>
          <td>${item.startFacility}</td>
          <td>${item.endFacility}</td>
          <td>${item.destinationAddress}</td>
          <td>${item.destinationTelecomNumber}</td>
          <td>${item.loadDate}</td>
          <td>${item.deptDate}</td>
        </tr>
      </c:forEach>
    </tbody>
  </table>

</c:forEach>
<%@ include file="/WEB-INF/include/script.jsp"%>
